<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 比较运算符用于比较两个值的大小，然后返回一个布尔值 -->
    <script>
        var num1 = 30;
        var num2 = 20;
        console.log(num2 > num1);
        // ==  ===  !=  !==
        var num3 = 10;
        var num4 = "10";
        
        console.log(num3 == num4);//true
        //严格比较，数值本身是否相同，类型本身是否相同
        console.log(num3 === num4);//false

        console.log(num3 != num4);//false
        console.log(num3 !== num4);//true
    </script>

    

</body>
</html>